package com.canyou.activiti.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.Map;

/**
 * 启动流程实例模型
 *
 * @author fy
 * @date 2021/3/5 14:01
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "ProcessInstanceAddDTO", description = "启动流程实例模型")
public class ProcessInstanceAddDTO {

    @ApiModelProperty(value = "流程定义key", required = true)
    @NotBlank(message = "流程定义key不能为空")
    private String definitionKey;

    @ApiModelProperty(value = "流程实例名称", required = true)
    @NotBlank(message = "流程实例名称不能为空")
    private String instanceName;

    @ApiModelProperty(value = "流程实例描述")
    private String instanceDescription;

    @ApiModelProperty(value = "流程实例变量")
    private Map<String, Object> variables;

}
